<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "set_user_up".
 *
 * @property int $id
 * @property float $vip1
 * @property int $vip2
 * @property float $vip3
 * @property int $vip3_2
 * @property float $vip1_amount 直推
 * @property float|null $vip2_amount_1
 * @property float|null $vip2_amount_2
 * @property float|null $vip3_amount_1
 * @property float|null $vip3_amount_2
 * @property float|null $vip1_score_self 购买积分
 * @property float|null $vip3_score_self
 * @property float|null $vip1_score_1 推荐积分
 * @property float|null $vip1_score_2
 * @property float|null $vip2_score_1
 * @property float|null $vip2_score_2
 * @property float|null $vip3_score_1
 * @property float|null $vip3_score_2
 * @property float|null $pool 拿出多少
 * @property float|null $v1_ratio
 * @property float|null $v2_ratio
 * @property float|null $v3_ratio
 * @property float|null $v4_ratio
 * @property float|null $v1
 * @property float|null $v2
 * @property float|null $v3
 * @property float|null $v4
 * @property float|null $shop_vip1
 * @property float|null $shop_vip2
 * @property float|null $shop_vip3
 */
class SetUserUp extends \yii\db\ActiveRecord
{
    use SetUserUpCommon;


    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'set_user_up';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['vip1', 'vip3', 'vip1_amount', 'vip2_amount_1', 'vip2_amount_2', 'vip3_amount_1', 'vip3_amount_2', 'vip1_score_self', 'vip3_score_self', 'vip1_score_1', 'vip1_score_2', 'vip2_score_1', 'vip2_score_2', 'vip3_score_1', 'vip3_score_2', 'pool', 'v1_ratio', 'v2_ratio', 'v3_ratio', 'v4_ratio', 'v1', 'v2', 'v3', 'v4', 'shop_vip1', 'shop_vip2', 'shop_vip3'], 'number'],
            [['vip2', 'vip3_2'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'vip1' => 'Vip 1',
            'vip2' => 'Vip 2',
            'vip3' => 'Vip 3',
            'vip3_2' => 'Vip 3  2',
            'vip1_amount' => 'Vip 1 Amount',
            'vip2_amount_1' => 'Vip 2 Amount  1',
            'vip2_amount_2' => 'Vip 2 Amount  2',
            'vip3_amount_1' => 'Vip 3 Amount  1',
            'vip3_amount_2' => 'Vip 3 Amount  2',
            'vip1_score_self' => 'Vip 1 Score Self',
            'vip3_score_self' => 'Vip 3 Score Self',
            'vip1_score_1' => 'Vip 1 Score  1',
            'vip1_score_2' => 'Vip 1 Score  2',
            'vip2_score_1' => 'Vip 2 Score  1',
            'vip2_score_2' => 'Vip 2 Score  2',
            'vip3_score_1' => 'Vip 3 Score  1',
            'vip3_score_2' => 'Vip 3 Score  2',
            'pool' => 'Pool',
            'v1_ratio' => 'V 1 Ratio',
            'v2_ratio' => 'V 2 Ratio',
            'v3_ratio' => 'V 3 Ratio',
            'v4_ratio' => 'V 4 Ratio',
            'v1' => 'V 1',
            'v2' => 'V 2',
            'v3' => 'V 3',
            'v4' => 'V 4',
            'shop_vip1' => 'Shop Vip 1',
            'shop_vip2' => 'Shop Vip 2',
            'shop_vip3' => 'Shop Vip 3',
        ];
    }
}
